
package edu.tongji.jiaowu.service.impl;
 
import java.util.List;
import com.tongji.quickCRUDQ.service.impl.BaseManagerImpl;
import edu.tongji.jiaowu.dao.TeacherDao;
import edu.tongji.jiaowu.service.TeacherManager;
import com.tongji.quickCRUDQ.model.CommonBean;

public class TeacherManagerImpl extends BaseManagerImpl implements TeacherManager {
        private TeacherDao teacherDao;

	
	public CommonBean createTeacher(){
                return teacherDao.createTeacher();		
	}
	
/*
	public CommonBean findTeachers(String refid) {
                return teacherDao.findTeachers(refid);
       }
*/
	public CommonBean findTeacherById(String id){
                return teacherDao.findTeacherById(id);
       }	
	public CommonBean findAllTeachers() {
                return teacherDao.findAllTeachers();
       }
	public void insertTeacher(CommonBean teacherBean){
               teacherDao.insertTeacher(teacherBean);
	}
	
	public TeacherDao getTeacherDao(){
		return teacherDao;
        }	
        
        public void setTeacherDao(TeacherDao teacherDao){
                this.teacherDao=teacherDao;	
        }        		
}

